﻿using System.Xml;
using Ro.Common.RoInterface.UserType;

namespace Ro.Common.RoInterface.RoWebAction
{
    /// <summary>
    /// 接口定义
    /// 断言操作
    /// </summary>
    public interface  IWebWaitUntilFunc
    {
        /// <summary>
        /// 等待页面载入完成
        /// </summary>
        /// <param name="sigNode">对应节点</param>
        /// <returns>返回操作</returns>
        WebActionResult WebWaitUntilPageIsLoaded(XmlNode sigNode);


        /// <summary>
        /// 验证是否相等
        /// </summary>
        /// <param name="sigNode">对应节点</param>
        /// <returns>返回操作</returns>
        WebActionResult WebWaitUntilAreEqual(XmlNode sigNode);


        /// <summary>
        /// 验证是否不等
        /// </summary>
        /// <param name="sigNode">对应节点</param>
        /// <returns>返回操作</returns>
        WebActionResult WebWaitUntilAreNotEqual(XmlNode sigNode);


        /// <summary>
        /// 验证是否为假
        /// </summary>
        /// <param name="sigNode">对应节点</param>
        /// <returns>返回操作</returns>
        WebActionResult WebWaitUntilIsFalse(XmlNode sigNode);


        /// <summary>
        /// 验证是否为真
        /// </summary>
        /// <param name="sigNode">对应节点</param>
        /// <returns>返回操作</returns>
        WebActionResult WebWaitUntilIsTrue(XmlNode sigNode);


        /// <summary>
        /// 验证是否包含
        /// </summary>
        /// <param name="sigNode">对应节点</param>
        /// <returns>返回操作</returns>
        WebActionResult WebWaitUntilStringContains(XmlNode sigNode);

        /// <summary>
        /// 验证字符串最大长度
        /// </summary>
        /// <param name="sigNode">对应节点</param>
        /// <returns>返回操作</returns>
        WebActionResult WebWaitUntilStringLength(XmlNode sigNode);
    }
}